package cn.wawi.entity.sys;
import com.fasterxml.jackson.annotation.JsonFormat;import cn.wawi.common.annotation.TableField;
import cn.wawi.common.annotation.TableName;
/**
 * sys_department 实体类
 * 2016-12-16 20:16:51
 */
@TableName(value="sys_department")
public class Department implements java.io.Serializable{	
	private static final long serialVersionUID = 1L;	/**
	 *注释: id
	 */
	@TableField(value="id",isPrimaryKey=true)
	private Integer id;
	/**
	 *注释: 部门名称
	 */
	@TableField(value="dept_name")
	private String deptName;
	/**
	 *注释: 部门地址
	 */
	@TableField(value="dept_address")
	private String deptAddress;
	/**
	 *注释: 部门电话
	 */
	@TableField(value="dept_phone")
	private String deptPhone;
	/**
	 *注释: 类型 1公司  2公司领导 3部门  0其它
	 */
	@TableField(value="type")
	private String type;
	/**
	 *注释: parent_id
	 */
	@TableField(value="parent_id")	private Integer parentId;
	/**
	 *注释: remark
	 */
	@TableField(value="remark")
	private String remark;
	/**
	 *注释: 创建时间
	 */
	@TableField(value="create_time")
	@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
	private java.util.Date createTime=new java.util.Date();
	public void setId(Integer id){
		this.id=id;
	}
	public Integer getId(){
		return id;
	}
	public void setDeptName(String deptName){
		this.deptName=deptName==null?null:deptName.trim();
	}
	public String getDeptName(){
		return deptName;
	}
	public void setDeptAddress(String deptAddress){
		this.deptAddress=deptAddress==null?null:deptAddress.trim();
	}
	public String getDeptAddress(){
		return deptAddress;
	}
	public void setDeptPhone(String deptPhone){
		this.deptPhone=deptPhone==null?null:deptPhone.trim();
	}
	public String getDeptPhone(){
		return deptPhone;
	}
	public void setType(String type){
		this.type=type==null?null:type.trim();
	}
	public String getType(){
		return type;
	}
	public void setParentId(Integer parentId){
		this.parentId=parentId;
	}
	public Integer getParentId(){
		return parentId;
	}
	public void setRemark(String remark){
		this.remark=remark==null?null:remark.trim();
	}
	public String getRemark(){
		return remark;
	}
}

